package hmis.pos.sys.service;

import hmis.pos.Base.BaseService.BaseService;
import hmis.pos.sys.entity.SysUserEntity;

import java.util.List;

public interface SysUserService extends BaseService<SysUserEntity> {

    /**
     * 通过userName查找
     *
     * @param userName
     * @return
     */
    SysUserEntity findByUsername(String userName);

    /**
     * 查找所有用户
     *
     * @return
     */
    List<SysUserEntity> findAll();

    /**
     * 添加用户
     * @param sysUserEntity
     * @return
     */
    SysUserEntity save(SysUserEntity sysUserEntity);
}
